﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AgencyEntityLib.BaseEntity;

public partial class iFrameAdmin_EditAgency : iAdmin_Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack) DataBind(); 
    }
    
    protected  Department  Department
    {
        get{ return _wsAgency.GetDepartment(DepartmentID); }   
    }

        
    private string DepartmentID
    {
        get { return Request.QueryString[qDepartmentID]; }
    }

    private void ReadForm()
    {
        Department.Name = txtName.Text;

    }
    protected void btnSave_Click(object sender, EventArgs e)
    {
        ReadForm();
        _wsAgency.SaveAgency (); 
    }
}
